package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type ListReq struct {
	g.Meta `path:"/tasks" tags:"任务调度" method:"get" summary:"任务调度列表"`
}
type ListRes struct {
	g.Meta `mime:"application/json"`
}

type AddReq struct {
	g.Meta `path:"/tasks" tags:"任务调度" method:"post" summary:"添加任务调度"`
}
type AddRes struct {
	g.Meta `mime:"application/json"`
}

type UpdateReq struct {
	g.Meta `path:"/tasks/{id}" tags:"任务调度" method:"put" summary:"更新任务调度"`
	Id     int64 `query:"id" v:"required|min:1"`
}
type UpdateRes struct {
	g.Meta `mime:"application/json"`
}

type DeleteReq struct {
	g.Meta `path:"/tasks/{id}" tags:"任务调度" method:"delete" summary:"删除任务调度"`
	Id     int64 `query:"id" v:"required|min:1"`
}
type DeleteRes struct {
	g.Meta `mime:"application/json"`
}

type InfoReq struct {
	g.Meta `path:"/tasks/{id}" tags:"任务调度" method:"get" summary:"任务调度详情"`
	Id     int64 `query:"id" v:"required|min:1"`
}

type InfoRes struct {
	g.Meta `mime:"application/json"`
}
